package com.xframework.inteceptor;

import com.xframework.Base;
import feign.Request;
import feign.RequestInterceptor;
import feign.RequestTemplate;
import org.springframework.context.annotation.Configuration;

@Configuration
public class FeignRequestInteceptor implements RequestInterceptor {
    public FeignRequestInteceptor() {
        System.out.println("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx FeignRequestInteceptor xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
    }

    @Override
    public void apply(RequestTemplate template) {
        template = template.header(Base.FEIGN, Base.EQUALS);
//        if (Request.HttpMethod.GET.toString() == template.method() && template.body() != null) {
//        }
    }
}
